package com.sunwayhorizo.health.ets.base.persistent;

import com.sunwayhorizo.health.ets.base.persistent.pk.EtClssfctnDclrnsPK;

import java.io.Serializable;

import java.sql.Timestamp;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

@Entity
@TableGenerator(name = "ClssfctnDclrn_IdGenerator", table = "ET_Id_Generator", pkColumnName = "pkColumn", valueColumnName = "valueColumn", pkColumnValue = "ClssfctnDclrn_Id")
@NamedQuery(name = "EtClssfctnDclrns.findAll", query = "select o from EtClssfctnDclrns o")
@Table(name = "ET_CLSSFCTN_DCLRNS")
@IdClass(EtClssfctnDclrnsPK.class)
public class EtClssfctnDclrns implements Serializable {
	
	@Id
	@GeneratedValue(strategy = GenerationType.TABLE, generator = "ClssfctnDclrn_IdGenerator")
	@Column(name = "CLASSIFICATION_ID", nullable = false)
	private String classificationId;
	
	@Id
	@Column(name = "CONCEPT_ID", nullable = false)
	private String conceptId;
	
	@Id
	@Column(name = "BUILD_NUM", nullable = false)
	private Long buildNum;

	@Column(name = "INSERT_OPTION_CODE", nullable = false)
	private String insertOptionCode;

	@Column(name = "CREATION_DATE", nullable = false)
	private Timestamp creationDate;
	
	@Column(name = "CREATED_BY", nullable = false)
	private Long createdBy;
	
	@Column(name = "LAST_UPDATE_DATE", nullable = false)
	private Timestamp lastUpdateDate;
	
	@Column(name = "LAST_UPDATED_BY", nullable = false)
	private Long lastUpdatedBy;
	
	@Column(name = "LAST_UPDATE_LOGIN")
	private Long lastUpdateLogin;

	public EtClssfctnDclrns() {
		Long i = new Long(1);
		Timestamp nowTime = new Timestamp(new Date().getTime());

		createdBy = i;
		creationDate = nowTime;
		lastUpdatedBy = i;
		lastUpdateDate = nowTime;
		lastUpdateLogin = i;
	}

	public Long getBuildNum() {
		return buildNum;
	}

	public void setBuildNum(Long buildNum) {
		this.buildNum = buildNum;
	}

	public String getClassificationId() {
		return classificationId;
	}

	public void setClassificationId(String classificationId) {
		this.classificationId = classificationId;
	}

	public String getConceptId() {
		return conceptId;
	}

	public void setConceptId(String conceptId) {
		this.conceptId = conceptId;
	}

	public Long getCreatedBy() {
		return createdBy;
	}

	public void setCreatedBy(Long createdBy) {
		this.createdBy = createdBy;
	}

	public Timestamp getCreationDate() {
		return creationDate;
	}

	public void setCreationDate(Timestamp creationDate) {
		this.creationDate = creationDate;
	}

	public String getInsertOptionCode() {
		return insertOptionCode;
	}

	public void setInsertOptionCode(String insertOptionCode) {
		this.insertOptionCode = insertOptionCode;
	}

	public Long getLastUpdatedBy() {
		return lastUpdatedBy;
	}

	public void setLastUpdatedBy(Long lastUpdatedBy) {
		this.lastUpdatedBy = lastUpdatedBy;
	}

	public Timestamp getLastUpdateDate() {
		return lastUpdateDate;
	}

	public void setLastUpdateDate(Timestamp lastUpdateDate) {
		this.lastUpdateDate = lastUpdateDate;
	}

	public Long getLastUpdateLogin() {
		return lastUpdateLogin;
	}

	public void setLastUpdateLogin(Long lastUpdateLogin) {
		this.lastUpdateLogin = lastUpdateLogin;
	}
}
